package com.church.action;

import com.church.services.QandaServices;
import com.opensymphony.xwork2.ActionSupport;

public class RemoveAnswer extends ActionSupport {
	private QandaServices qandaServices;
	private long id;
	private String response;
	public QandaServices getQandaServices() {
		return qandaServices;
	}
	public void setQandaServices(QandaServices qandaServices) {
		this.qandaServices = qandaServices;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getResponse() {
		return response;
	}
	public void setResponse(String response) {
		this.response = response;
	}
	public String execute() {
		response=qandaServices.deleteById(id); 
		return response;
	}
}
